package org.poem;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@SpringBootApplication
//@EnableWebMvc //会覆盖WebMvcConfigurerAdapter
public class Main {
    @RequestMapping("/home")
    public String home(){
        return "pages/index.html";
    }


    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(Main.class);

        application.run(args);
    }
}
